import Vue from '@vitejs/plugin-vue';
import VueJsx from '@vitejs/plugin-vue-jsx';
import { defineConfig } from 'vitest/config';
import ViteComponents, { AntDesignVueResolver } from 'vite-plugin-components';

export default defineConfig({
  plugins: [
    Vue(),
    VueJsx(),
    ViteComponents({
      customComponentResolvers: [AntDesignVueResolver()],
    }),
  ],
  test: {
    environment: 'jsdom',
  },
});
